package cn.wsalix.tools.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Table;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import cn.anlaser.entity.SimpleEntity;

/**
 * @author jskyme
 * 命令
 */
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "COMMAND")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@EntityListeners({ AuditingEntityListener.class })
@Data
@EqualsAndHashCode(callSuper = false, exclude = { "icon" })
@ToString(exclude = "icon")
public class Command extends SimpleEntity {
	private static final long serialVersionUID = 9027885954610744145L;

	@Column(name = "ICON", length = 500)
	private String icon;

}